package com.ledim.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;

/**
 * Created by ccx on 16/7/26.
 * 专辑bean
 */
public class LedimAlbumBean implements Serializable {

    //public String __desc__;

    public String id;

    public String nameCn;
    public HashMap<Integer, String> albumType; //专辑类型
    public String videoType; //专辑类型

    public HashMap<Integer, String> category; //频道类型

    public int varietyShow; //0表示不是非栏目类 1表示栏目类

    public String description;

    // public String playCount;

    public int episodes; //总集数

    public int episode; //总集数

    public int nowEpisodes; //跟播的当前集数

    public String nowIssue; //最新期数（用于综艺频道）

    public int isEnd; //是否完结

    // public String rating;

    //public String starring;

    // public String releaseDate; //年份

    //public ArrayList<LedimEpisodeBean> videoLists = new ArrayList<LedimEpisodeBean>();

    // public String picCollections;
    // public ImageCollections images;

    //add by jpf,接口添加images字段,包括200X150,400x300,pic169
    public static class ImageCollections implements Serializable {

        public String pic_200X500;
        public String pic_400X300;
        public String pic169;     //16:9的图
    }

    public Integer getCategory() {
        if (category != null) {
            Iterator<Integer> iterator = category.keySet().iterator();
            while (iterator.hasNext()) {
                return iterator.next();
            }
        }
        return -1;
    }

    public Integer getalbumType() {
        if (albumType != null) {
            Iterator<Integer> iterator = albumType.keySet().iterator();
            while (iterator.hasNext()) {
                return iterator.next();
            }
        }
        return -1;
    }
}
